<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="/main" class="brand-link">
        <span class="logo-mini"><b>点餐</b></span>
    </a>
    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Notifications Dropdown Menu -->
        <li class="nav-item drop">
            <a class="nav-link" data-toggle="dropdown" href="#">
                    <span class="right fas">
                        <span class="hidden-xs">${user.email}</span>
                    </span>
            </a>
            <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                <span class="dropdown-item dropdown-header">账号信息</span>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">
                    <span class="hidden-xs">邮箱：${user.email}</span>
                </a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">
                    <span class="hidden-xs">用户名：${user.username}</span>
                </a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">
                    <span class="hidden-xs">手机号：${user.phone}</span>
                </a>
                <div class="dropdown-divider center-block"></div>
                <a href="#" class="dropdown-item dropdown-footer">
                    <a href="/logout" class="btn btn-block bg-gradient-danger">退出登录</a>
                </a>
            </div>
        </li>

        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <!-- Add icons to the links using the .nav-icon class
                     with font-awesome or any other icon font library -->
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-tasks"></i>
                        <p>
                            订单管理
                            <i class="fas fa-angle-left right"></i>
                            <span class="badge badge-info right">2</span>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="/order/unaccomplishment" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>未完成订单</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="/order/accomplishment" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>已完成订单</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-tasks"></i>
                        <p>
                            点餐列表
                            <i class="fas fa-angle-left right"></i>
                            <span class="badge badge-info right">2</span>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="/order/food" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>点餐</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="/order/trolley" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>购物车</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-tasks"></i>
                        <p>
                            账单管理
                            <i class="fas fa-angle-left right"></i>
                            <span class="badge badge-info right">1</span>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="/order/bill" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>账单详情</p>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>
